package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 排班星期表
 * @TableName dzm_his_scheduling_week
 */
@TableName(value ="dzm_his_scheduling_week")
public class DzmHisSchedulingWeek implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Object schedulingWeekId;

    /**
     * 时间
     */
    private String date;

    /**
     * 星期一：1；星期二：2；星期三：3；星期四：4；星期五：5；星期六：6；星期日：0
     */
    private Integer week;

    /**
     * 挂号费用ID
     */
    private Integer registeredfeeId;

    /**
     * 排班分段ID
     */
    private Object schedulingSubsectionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Object getSchedulingWeekId() {
        return schedulingWeekId;
    }

    /**
     *
     */
    public void setSchedulingWeekId(Object schedulingWeekId) {
        this.schedulingWeekId = schedulingWeekId;
    }

    /**
     * 时间
     */
    public String getDate() {
        return date;
    }

    /**
     * 时间
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * 星期一：1；星期二：2；星期三：3；星期四：4；星期五：5；星期六：6；星期日：0
     */
    public Integer getWeek() {
        return week;
    }

    /**
     * 星期一：1；星期二：2；星期三：3；星期四：4；星期五：5；星期六：6；星期日：0
     */
    public void setWeek(Integer week) {
        this.week = week;
    }

    /**
     * 挂号费用ID
     */
    public Integer getRegisteredfeeId() {
        return registeredfeeId;
    }

    /**
     * 挂号费用ID
     */
    public void setRegisteredfeeId(Integer registeredfeeId) {
        this.registeredfeeId = registeredfeeId;
    }

    /**
     * 排班分段ID
     */
    public Object getSchedulingSubsectionId() {
        return schedulingSubsectionId;
    }

    /**
     * 排班分段ID
     */
    public void setSchedulingSubsectionId(Object schedulingSubsectionId) {
        this.schedulingSubsectionId = schedulingSubsectionId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisSchedulingWeek other = (DzmHisSchedulingWeek) that;
        return (this.getSchedulingWeekId() == null ? other.getSchedulingWeekId() == null : this.getSchedulingWeekId().equals(other.getSchedulingWeekId()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getWeek() == null ? other.getWeek() == null : this.getWeek().equals(other.getWeek()))
            && (this.getRegisteredfeeId() == null ? other.getRegisteredfeeId() == null : this.getRegisteredfeeId().equals(other.getRegisteredfeeId()))
            && (this.getSchedulingSubsectionId() == null ? other.getSchedulingSubsectionId() == null : this.getSchedulingSubsectionId().equals(other.getSchedulingSubsectionId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSchedulingWeekId() == null) ? 0 : getSchedulingWeekId().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getWeek() == null) ? 0 : getWeek().hashCode());
        result = prime * result + ((getRegisteredfeeId() == null) ? 0 : getRegisteredfeeId().hashCode());
        result = prime * result + ((getSchedulingSubsectionId() == null) ? 0 : getSchedulingSubsectionId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", schedulingWeekId=").append(schedulingWeekId);
        sb.append(", date=").append(date);
        sb.append(", week=").append(week);
        sb.append(", registeredfeeId=").append(registeredfeeId);
        sb.append(", schedulingSubsectionId=").append(schedulingSubsectionId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
